﻿<?xml version="1.0" encoding="utf-8"?>

<log4net>
  <root>
    <level value="DEBUG" />
    <appender-ref ref="FileAppender" />
    <!--<appender-ref ref="RollingLogFileAppender" />-->
  </root>
  <appender name="FileAppender" type="log4net.Appender.FileAppender">
    <file value="log\\CInject.LogInject.txt" />
    <appendToFile value="true" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date [%thread] %-5level &#9; %logger &#9; %message%newline" />
    </layout>
  </appender>
  `
  <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
    <param name="File" value="log\\CInject.LogInject." />
    <param name="AppendToFile" value="true" />
    <param name="MaxSizeRollBackups" value="10" />
    <param name="MaximumFileSize" value="100000" />
    <param name="RollingStyle" value="Composite" />
    <param name="StaticLogFileName" value="false" />
    <param name="DatePattern" value="yyyy-MM-dd-mmss" />
    <layout type="log4net.Layout.PatternLayout">
      <param name="ConversionPattern" value="%date [%thread] %-5level &#9; %logger &#9; %message%newline" />
    </layout>
  </appender>
  <appender name="EventLogAppender" type="log4net.Appender.EventLogAppender">
    <applicationName value="CInject.LogInjector" />
    <layout type="log4net.Layout.PatternLayout">
      <conversionPattern value="%date [%thread] %-5level &#9; %logger &#9; %message%newline" />
    </layout>
  </appender>
</log4net>